home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
PInterfaces
/
DiskInit.p
< prev
next >
Wrap
Text File
|
1996-05-01
|
3KB
|
108 lines
{
File: DiskInit.p
Contains: Disk Initialization Package ('PACK' 2) Interfaces.
Version: Technology: System 7.5
Release: Universal Interfaces 3.0d3 on Copland DR1
Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
Bugs?: If you find a problem with this file, send the file and version
information (from above) and the problem description to:
Internet: apple.bugs@applelink.apple.com
AppleLink: APPLE.BUGS
}
{$IFC UNDEFINED UsingIncludes}
{$SETC UsingIncludes := 0}
{$ENDC}
{$IFC NOT UsingIncludes}
UNIT DiskInit;
INTERFACE
{$ENDC}
{$IFC UNDEFINED __DISKINIT__}
{$SETC __DISKINIT__ := 1}
{$I+}
{$SETC DiskInitIncludes := UsingIncludes}
{$SETC UsingIncludes := 1}
{$IFC UNDEFINED __TYPES__}
{$I Types.p}
{$ENDC}
{$PUSH}
{$ALIGN MAC68K}
{$LibExport+}
{$IFC FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED }
TYPE
HFSDefaultsPtr = ^HFSDefaults;
HFSDefaults = RECORD
sigWord: PACKED ARRAY [0..1] OF CHAR; { signature word }
abSize: LONGINT; { allocation block size in bytes }
clpSize: LONGINT; { clump size in bytes }
nxFreeFN: LONGINT; { next free file number }
btClpSize: LONGINT; { B-Tree clump size in bytes }
rsrv1: INTEGER; { reserved }
rsrv2: INTEGER; { reserved }
rsrv3: INTEGER; { reserved }
END;
PROCEDURE DILoad;
{$IFC NOT GENERATINGCFM}
INLINE $7002, $3F00, $A9E9;
{$ENDC}
PROCEDURE DIUnload;
{$IFC NOT GENERATINGCFM}
INLINE $7004, $3F00, $A9E9;
{$ENDC}
FUNCTION DIBadMount(where: Point; evtMessage: LONGINT): INTEGER;
{$IFC NOT GENERATINGCFM}
INLINE $7000, $3F00, $A9E9;
{$ENDC}
FUNCTION DIFormat(drvNum: INTEGER): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $7006, $3F00, $A9E9;
{$ENDC}
FUNCTION DIVerify(drvNum: INTEGER): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $7008, $3F00, $A9E9;
{$ENDC}
FUNCTION DIZero(drvNum: INTEGER; volName: Str255): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $700A, $3F00, $A9E9;
{$ENDC}
{
DIXFormat, DIXZero, and DIReformat are only available when FSM (File System Manager) is installed.
FSM is part of Macintosh PC Exchange and System 7.5.
}
FUNCTION DIXFormat(drvNum: INTEGER; fmtFlag: BOOLEAN; fmtArg: LONGINT; VAR actSize: LONGINT): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $700C, $3F00, $A9E9;
{$ENDC}
FUNCTION DIXZero(drvNum: INTEGER; volName: Str255; fsid: INTEGER; mediaStatus: INTEGER; volTypeSelector: INTEGER; volSize: LONGINT; extendedInfoPtr: UNIV Ptr): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $700E, $3F00, $A9E9;
{$ENDC}
FUNCTION DIReformat(drvNum: INTEGER; fsid: INTEGER; volName: Str255; msgText: Str255): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $7010, $3F00, $A9E9;
{$ENDC}
{$ENDC}
{$ALIGN RESET}
{$POP}
{$SETC UsingIncludes := DiskInitIncludes}
{$ENDC} {__DISKINIT__}
{$IFC NOT UsingIncludes}
END.
{$ENDC}